package com.cheyun.netsalev3


import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProviders
import com.cheyun.netsalev3.databinding.FragmentDmMyBinding
import com.cheyun.netsalev3.utils.BaseFragment
import com.cheyun.netsalev3.utils.FunctionUtils
import com.cheyun.netsalev3.viewmodel.DmMyFragmentViewModel

/**
 * 我的
 */
class DmMyFragment : BaseFragment<FragmentDmMyBinding>() {
    override fun initView() {
        binding.txtVersion.setText("版本号 v"+ FunctionUtils.getCurrentVersion(this.context!!))
    }

    override fun initViewModel(): ViewModel? {
        return ViewModelProviders.of(this).get(DmMyFragmentViewModel::class.java)
    }

    override fun initContentView(): Int {
      return R.layout.fragment_dm_my
    }

    override fun initData() {
    }

    override fun lazyInit() {
        Log.i(TAG,"override lazyinit")
    }

    override fun onResume() {
        super.onResume()
        Log.e("HomeMyFragment onResume", userVisibleHint.toString())

    }

    override fun setUserVisibleHint(isVisibleToUser: Boolean) {
        super.setUserVisibleHint(isVisibleToUser)

    }

}
